/* eslint-disable */
// @ts-ignore
import request from '@/utils/http';

import * as API from './types';

/** 查看详情 POST /record/userAreaHelp/getData */
export async function recordUserAreaHelpGetDataUsingPost({
  body,
  options,
}: {
  body: API.RecordUserAreaHelpBoRecordUserAreaHelpGetData;
  options?: { [key: string]: unknown };
}) {
  return request<API.RRecordUserAreaHelpVo>('/record/userAreaHelp/getData', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 获取对方位置 POST /record/userAreaHelp/getLocation */
export async function recordUserAreaHelpGetLocationUsingPost({
  body,
  options,
}: {
  body: API.RecordUserAreaHelpBoRecordUserAreaHelpGetLocation;
  options?: { [key: string]: unknown };
}) {
  return request<API.RLocationVo>('/record/userAreaHelp/getLocation', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 分页查询 POST /record/userAreaHelp/pageData */
export async function recordUserAreaHelpPageDataUsingPost({
  body,
  options,
}: {
  body: API.RecordUserAreaHelpBoRecordUserAreaHelpPageData;
  options?: { [key: string]: unknown };
}) {
  return request<API.RPageDataVoRecordUserAreaHelpVo>(
    '/record/userAreaHelp/pageData',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 我要求助记录统计-小区-时间(天) POST /record/userAreaHelp/statisticsToDayDate */
export async function recordUserAreaHelpStatisticsToDayDateUsingPost({
  body,
  options,
}: {
  body: API.RecordUserAreaHelpBoRecordUserAreaHelpStatisticsToDayDate;
  options?: { [key: string]: unknown };
}) {
  return request<API.RListRecordUserAreaHelpStatisticsVo>(
    '/record/userAreaHelp/statisticsToDayDate',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    }
  );
}

/** 上报位置 POST /record/userAreaHelp/upLocation */
export async function recordUserAreaHelpUpLocationUsingPost({
  body,
  options,
}: {
  body: API.RecordUserAreaHelpBoRecordUserAreaHelpUpLocation;
  options?: { [key: string]: unknown };
}) {
  return request<API.RBoolean>('/record/userAreaHelp/upLocation', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
